	<!-- 内容1 -->
	<ul class="det clearFloat">
	
		<#if productList ??>
			<#list  productList as product>
				<li>
					<div class="ig">
						<img src="/product/images/video/${product.partnum}/288X289/${product.partnum}.jpg" />
						<div class="bg"></div>
						<div class="down">
							<#if _LOGIN_USER ?? && _LOGIN_USER.userId?? >
								<a class="a1" href="product/${product.partnum}/product.html">立即学习</a>
								<a href="javascript:void(0);" onclick="addCollection(${product.productId},3)"  >收藏</a>
								<#else>
								<a class="a1" href="javascrip:void(0);" onclick="login()" >立即学习</a>
								<a href="javascript:void(0);"  onclick="login()" >收藏</a>
							</#if>
						</div>
					</div>
					<div class="fon">
						<span>
								<#if product.name?length lt 15>   
									${product.name}
								<#else> 
		     						${product.name[0..15]}... 
								</#if>
						</span>
						<#if product.attrList ??>
						
						 <#assign attrList = product.getAttrList() > 
						 
							<#list 0..(attrList?size-1) as i >
									<#if attrList[i].attr.code=="STUDY_NUM">
										<i>${attrList[i].attrValue.attrValue}人学习</i>
									</#if>
							</#list>
							
						<#else>
							<i>0人学习</i>
						</#if>
					</div>
				</li>
			</#list>
			
			<#else>
			
		  </#if>
		  
	  
	</ul>

	<div class="page">
		<a class="a_dis" href="javascript:void(0);">首页</a>
		<a class="a_dis" href="javascript:void(0);">&lt; 上一页</a>
		<a class="a_select" href="javascript:void(0);">1</a>
		<a href="javascript:void(0);">2</a>
		<a href="javascript:;">3</a>
		<a href="javascript:;">4</a>
		<a href="javascript:void(0);">下一页 &gt;</a>
		<a href="javascript:void(0);">尾页</a>
	</div>
	
	<script type="text/javascript">
	
	
	//添加收藏
	function addCollection(productId,type){
		var add_url = "product/collection/add.do";
		$.ajax({	
			url: add_url,
			type: 'post',
			dataType: 'json',
			data:{productId:productId,type:type},
			success: function(data) {
				alert(data.collection.collectId+">>>");
				alert("收藏成功!");
			}
		});
	}
	function login(){
		$(".login_pop").show();
	}
	
	</script>